package com.fac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 创建支付订单DTO
 */
@Data
@ApiModel(description = "创建支付订单请求参数")
public class PaymentCreateDTO implements Serializable {

    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单ID", example = "1", required = true)
    private Long orderId;

    @NotBlank(message = "订单类型不能为空")
    @ApiModelProperty(value = "订单类型：租赁单/维修单", example = "租赁单", required = true)
    private String orderType;

    @NotBlank(message = "支付类型不能为空")
    @ApiModelProperty(value = "支付类型：租金/押金/维修费", example = "租金", required = true)
    private String paymentType;

    @NotBlank(message = "支付方式不能为空")
    @ApiModelProperty(value = "支付方式：微信/支付宝/信用卡", example = "微信", required = true)
    private String paymentMethod;
} 